package com.jingdianjichi.subject.infra.basic.mapper;

import com.jingdianjichi.subject.infra.basic.entity.SubjectLiked;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;

/**
 * 题目点赞表(SubjectLiked)表数据库访问层
 *
 * @author makejava
 * @since 2025-02-26 14:39:48
 */
public interface SubjectLikedDao {



    /**
     * 新增数据
     *
     * @param subjectLiked 实例对象
     * @return 影响行数
     */
    int insert(SubjectLiked subjectLiked);


    /**
     */
    int countByCondition(SubjectLiked subjectLiked);

    /**
     * 分页查询
     */
    List<SubjectLiked> queryPage(@Param("entity") SubjectLiked subjectLiked,
                                 @Param("start") int start,
                                 @Param("pageSize") Integer pageSize);
}

